<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
</html>
<script type="text/javascript">
	
	// 类数组
	// 属性要为索引（数字）属性，必须有length属性，最好加上push
	var aaa = {
		0: 'a',
		1: 'b',
		2: 'c',
		length: 3,
		//	调用数组的push添加
		push: Array.prototype.push
	}
	console.log(aaa)
	
	// 添加之后
	aaa.push('d')
	console.log(aaa)
	
	
	
	var bbb = {
		0: 'a',
		1: 'b',
		2: 'c',
		length: 3,
		push: Array.prototype.push,
		
		// 添加splice后，对象变为数组
		splice:	Array.prototype.splice
	}
	console.log(bbb)	
	
</script>